package cn.wolfcode.business.mapper;

import cn.wolfcode.business.domain.BusAudit;
import cn.wolfcode.business.domain.BusBpmnInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BusBpmnInfoMapper {
    List<BusBpmnInfo> getBpmnInfoList();

    /**
     * 部署流程定义
     * @param busBpmnInfo
     * @return
     */
    Integer add(BusBpmnInfo busBpmnInfo);

    /**
     * 根据id查询流程定义明细表中的指定流程定义对象
     * @param id
     * @return  指定的流程定义对象BusBpmnInfo
     */
    BusBpmnInfo selectBusBpmnInfoById(Long id);

    Integer deleteById(Long id);

    BusBpmnInfo selectProcessInstanceByBpmnType(Integer flowAuditType);

}
